/*
 * @Author: your name
 * @Date: 2021-05-01 14:26:14
 * @LastEditTime: 2021-05-01 15:01:13
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \CodeBase\GraphQL\project1\hello.js
 */
const { graphql, buildSchema } = require("graphql");

var schema = buildSchema(`
	type Query {
		hello: String
	}
`);

var root = { hello: () => "Hello World" };

graphql(schema, "{hello}", root).then((res) => {
  console.log(res);
});
